package HomeWork.ooday02;

public class Student extends Person{
    String stuID;
    String className;
    Student(String name,String address, int age, String stuID, String className){
        super(name,address,age);
        this.stuID=stuID;
        this.className=className;
    }
    void study(){
        System.out.println(name+"正在学习...");
    }
    void sayHi(){
        System.out.println("我的名字是"+name+"，我今年"+age+"岁了，我的学号是"+stuID+"，我的班级名称是"+className+"，我住在"+address);
    }
}
